/* 监考大屏专用样式 */

/* 全局布局 */
.monitor-dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 统计卡片样式 */
.stats-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.stats-card-content {
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    height: 180px;
    justify-content: space-evenly;
}

.stats-icon {
    font-size: 32px;
    margin-bottom: 12px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.stats-icon.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stats-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stats-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stats-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stats-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stats-card:hover .stats-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.stats-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1;
    flex-shrink: 0;
}

.stats-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.stats-rate {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-rate.empty {
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* 学生列表容器 */
.students-list-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
    border: none !important;
}

/* 表格样式优化 */
.cxd-Table {
    background: transparent !important;
}

.cxd-Table-content {
    font-size: 13px;
}

.cxd-Table-header {
    background: #f8fafc !important;
    font-weight: 600;
    color: #374151;
}

.cxd-Table-row:nth-child(even) {
    background: rgba(248, 250, 252, 0.5) !important;
}

.cxd-Table-row:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}



/* 页面标题样式 */
.monitor-title {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.monitor-title i {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .monitor-dashboard-page {
        padding: 15px;
    }
    
    .monitor-title {
        font-size: 24px;
    }
    
    .stats-icon {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }
    
    .stats-value {
        font-size: 28px;
    }
    
    .stats-card-content {
        padding: 20px;
    }
    
    .refresh-button {
        width: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .stats-card-content {
        padding: 16px;
    }
    
    .stats-icon {
        font-size: 28px;
        width: 50px;
        height: 50px;
    }
    
    .stats-value {
        font-size: 24px;
    }
}

/* 状态标签优化 */
.label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 15px;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 